<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* .he {
            position: relative;
        }

        .shang {
            position: absolute;
            top: 0;
            left: 0;
            width: 200px;
            height: 100vh;
            background-color: red;
        }

        .zhong {
            padding: 0 200px;
            height: 100vh;
            background-color: green;
        }

        .di {
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 100vh;
            background-color: blue;
        } */
        /* .he {
            display: flex;
        }

        .shang {
            width: 200px;
            height: 100vh;
            background-color: pink;
        }

        .zhong {
            flex-grow: 1;
            height: 100vh;
            background-color: blueviolet;
        }

        .di {
            width: 200px;
            height: 100vh;
            background-color: red;
        } */
        .he {
            display: flex;
        }

        .shang {
            display: flex;
            width: 200px;
            height: 100vh;
            background-color: gold;
        }

        .zhong {
            display: flex;
            width: calc(100% - 400px);
            height: 100vh;
            background-color: greenyellow;
        }

        .di {
            display: flex;
            width: 200px;
            height: 100vh;
            background-color: brown;
        }
    </style>
</head>

<body>
    <div class="he">
        <div class="shang"> 111</div>
        <div class="zhong">222</div>
        <div class="di">333</div>
    </div>
</body>
<script>
    //常用布局
    //1.静态布局  px作为单位
    //2.流式布局  网格布局，%作为单位
    //3.自适应布局  @media媒体查询
    //4.响应式布局  媒体查询+流式布局+静态布局（适配多端）
    //5。rem/em布局
    //6.弹性布局 flex
    //7.圣杯布局（双飞翼布局） 左右固定，中间自适应
</script>

</html>